#-------------------------------------------------
#
# Project created by QtCreator 2012-08-22T16:33:11
#
#-------------------------------------------------

QT       += core gui

TARGET = gpsController
TEMPLATE = app


SOURCES += main.cpp\
        mainwindow.cpp \
    gps/tok.c \
    gps/time.c \
    gps/sentence.c \
    gps/parser.c \
    gps/parse.c \
    gps/info.c \
    gps/gmath.c \
    gps/context.c \
    gps/gpsWorker.cpp \
    gps/gpsSession.cpp \
    gps/gpscontroller.cpp

HEADERS  += mainwindow.h \
    gps/units.h \
    gps/tok.h \
    gps/time.h \
    gps/sentence.h \
    gps/parser.h \
    gps/parse.h \
    gps/info.h \
    gps/gmath.h \
    gps/context.h \
    gps/config.h \
    gps/gpsWorker.h \
    gps/gpsSession.h \
    gps/gpscontroller.h

FORMS    += mainwindow.ui

INCLUDEPATH += ../QSerialDevice
INCLUDEPATH += ../QSerialDeviceEnumerator

LIBS += -lm

CONFIG(debug, debug|release) {
    QMAKE_LIBDIR += ../QSerialDevice/debug
    QMAKE_LIBDIR += ../QSerialDeviceEnumerator/debug
    LIBS += -lqserialdeviced
    LIBS += -lqserialdeviceenumeratord
    DESTDIR = debug
} else {
    QMAKE_LIBDIR += ../QSerialDevice/release
    QMAKE_LIBDIR += ../QSerialDeviceEnumerator/release
    LIBS += -lqserialdevice
    LIBS += -lqserialdeviceenumerator
    DESTDIR = release
}

win32 {
    LIBS += -lsetupapi -luuid -ladvapi32
}
unix:!macx {
    LIBS += -ludev
}
